﻿using Serilog.Events;

namespace Infrastructure.WebApi.Middleware
{
    public class HttpLogInfo
    {
        public string Rid { get; set; }
        public string Url { get; set; }
        public string Action { get; set; }
        public string HttpMethod { get; set; }
        public string RequestBody { get; set; }
        public string ResponseBody { get; set; }
        public long Time { get; set; }
        public string Tag { get; set; }
        public string Message { get; set; }
        public string UserIp { get; set; }
        public LogEventLevel LogEventLevel { get; set; }
        public Exception Exception { get; set; }
        public int StatusCode { get; set; }
    }

    public enum LogTag
    {
        Custom = 0,
        RequestLog = 1,
        Exception = 2,
        HttpClient = 3,
    }
}
